package com.mini.cn.goods.po.dto;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: fly
 * Date: 2022/12/26
 * Time: 16:42
 */
@Data
public class OrderDto {
    private String openId;
    private List<GroupGoods> goodsList;
    private int appId;
    private String userName;
    private String userLogo;
    private long cTime;


    public static void main(String[] args) {
        OrderDto orderDto = new OrderDto();
        orderDto.setAppId(2);
        orderDto.setOpenId("111111");
        List<GroupGoods> goods = new ArrayList<>();
        GroupGoods groupGoods = new GroupGoods();
        groupGoods.setGoodsId("60e1fda328f7895020811a1fdff917c3");
        groupGoods.setCount(1);
        groupGoods.setName("洋槐原蜜 500g");
        groupGoods.setPrice("https://www.yanglihao.fun/goodsAdmin/download?filePath=/usr/local/mini/image/goods/1666277788597洋槐蜜01.png");
        goods.add(groupGoods);
        orderDto.setGoodsList(goods);
        System.out.println(JSONObject.toJSONString(orderDto));
    }
}
